package com.yl.auth.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yl.auth.model.entity.Yexun;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yl.auth.model.entity.YexunXiao;
import com.yl.auth.model.vo.YexunVo;
import com.yl.auth.model.vo.YexundizhirenyuanVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ln
 * @since 2023-06-15
 */
public interface YexunMapper extends BaseMapper<Yexun> {

    /**
     * 夜巡管理分页添加查询
     * @param iPage
     * @param sname
     * @param sdizhiname
     * @param sinspectiontime
     * @param sinspectionstatus
     * @return
     */
    Page<YexundizhirenyuanVo> getPageVo(@Param("iPage") Page<YexundizhirenyuanVo> iPage,
                                        @Param("sname") String sname,
                                        @Param("sdizhiname") String sdizhiname,
                                        @Param("sinspectiontime") String sinspectiontime,
                                        @Param("sinspectionstatus") Integer sinspectionstatus);

    /**
     * 导出
     * @param o
     * @return
     */
    List<Yexun> selectyexun(Object o);

    List<YexunVo> getyexuns(@Param("sname")String sname, @Param("sdizhiname") String sdizhiname, @Param("sinspectiontime")String sinspectiontime, @Param("sinspectionstatus")Integer sinspectionstatus);

    List<YexunVo> getxiaoyexuns(@Param("id")Integer id);

    List<YexunVo> getyexuntime();

    List<YexunVo> getyexundizhi();

    List<YexunVo> getzhaungtai(Integer sinspectionstatus);


    void save(Integer dzId, Integer inspectionstatus, String inspectionrecord);

    void save(YexunXiao yexunXiao);
}
